It's possible to use the 4EXT Api Framework from the command line / shell scripts too.

To do that, first generate a properties file.
That's a simple textfile.  (sample file included)

Put all actions that should be carried out into that file.

Then call the interface like that:

"am start -a EXT_RecoveryInterface -e read_from_prop /sdcard/test.prop"

To demonstrate all available features of the interface, this will trigger a backup, 
wipe dalvik, wipe cache, factory reset and install 4 zip files. (the free app is no longer limited)

Paths must start with '/sdcard', not '/mnt/sdcard'.

When you start a backup via this interface, it will be ensured that there's enough free space on the sdcard. 
If there's insufficient space available, it won't continue.

The option "stay=true" makes it possible to stay inside recovery after completion.

The 4EXT App must have been started at least once before it is possible to be used. 
This limitation is by design of later Android versions.
Additionally the user must have set it up (happens on first start).

For any further questions, please send me an email: madmaxx82@mailspot.at

Thank you.
